package com.java.test1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Exceptoindemo1 {
	public static void main(String[] args) {
		test012();
	}

	/**
	 * 通过throws来向上传递异常信息
	 */
	private static void test012() {

		// 调用throws来处理异常
		try {
			test011();
		} catch (FileNotFoundException e) {
			System.out.println("执行了catch：" + e.getMessage());
			//e.printStackTrace();
		} finally {
			System.out.println("完成了异常处理!");
		}
	}

	private static void test011() throws FileNotFoundException {

		test01();
	}

	private static void test01() throws FileNotFoundException {

		FileInputStream f1 = new FileInputStream("e:/temp/ttt.txt");

	}
}
